<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>oauth2-client-login-js-gitee</title>
</head>
<body>
<p>
    <button onclick="handleLoginGitee()">使用Gitee码云登录</button>
</p>
</body>
<script>
    function handleLoginGitee() {
        //触发gitee登录
        window.location.href = "https://gitee.com/oauth/authorize" +
            "?client_id=d0afb17c524eeaaa6c881089f4bd9470baacc42ac27d99221344dd2e65c9e816" +
            "&redirect_uri=http://localhost:8080" +
            "&response_type=code";
    }
</script>
</html>